//
// Created by zouzheng on 2020/12/18.
//
#include <stdio.h>
#ifndef FILEREADER_H
#define FILEREADER_H
#define BUFFER_LEN 256


typedef struct{
    FILE* fp;
    char szBuffer[BUFFER_LEN];
    unsigned short index;
}FileReader;

void initFileReader(FileReader*, char*);
char readChar(FileReader*);
int readInt(FileReader*);
double readDouble(FileReader*);
void unRead(FileReader*);
void close(FileReader*);
void destroyFileReader(FileReader*);

#endif //FILEBUFFEREDREADER_H
